package com.happyfamily.springboot.crowdsourcingplatform.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.socket.server.standard.ServerEndpointExporter;


/**
 * 注入ServerEndpointExporter之后，
 * <p>
 * 这个bean会自动注册使用了@ServerEndpoint注解声明的websocket
 *
 * @author Angel -- 守护天使
 * @version v
 * @date
 */
@Configuration
public class WebSocketConfig
{
		@Bean
			public ServerEndpointExporter serverEndpointExporter()
			{
				return new ServerEndpointExporter();
			}

}
